# -*- coding: utf-8 -*-
"""
Created on Sun Nov 20 21:42:52 2022

@author: YSL
"""

import random

def Keys_Creat(num,long):
    keys = []  # 激活码列表
    for i in range(num):
        key = ""
        for j in range(long+1):
            choice = random.randint(1, 5)  #随机函数
            if choice == 1:
                key += str(random.randint(0, 9))
            elif 2 < choice < 4:
                key += chr(random.randint(65, 90))
            else:
                key += chr(random.randint(97, 122))
        keys.append(key[1:])

    return keys

result = Keys_Creat(200,11)
print(result)